package cn.uniqueinfo.dp.enums;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-04 10:41:09
 * @description: 返回结果编码枚举
 */
public enum ResultCodeEnum {
    /**成功*/
    SUCCESS(1,"成功"),
    /**失败*/
    FAIL(0,"失败"),
    /**未认证（签名错误）*/
    UNAUTHORIZED(0,"未认证"),
    /**接口不存在*/
    NOT_FOUND(404,"接口不存在"),
    /**服务器内部错误*/
    INTERNAL_SERVER_ERROR(0,"服务器内部错误");

    private Integer code;
    private String msg;

    ResultCodeEnum(Integer code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
